<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<?php
    /*header("Content-type: application/octet-stream");
    header("Content-Disposition: attachment; filename=Laporan Anggaran Desa ".$this->session->userdata('id_desa').".xls");
    header("Pragma: no-cache");
    header("Expires: 0");*/
?>

<html>
<head><style type="text/css"></style></head>
<body leftmargin="0" rightmargin="0" topmargin="-50" bottommargin="0" width: 1344px; height: 842px;  /* to centre page on screen*/ margin-left: auto; margin-right: auto;>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<title>Invoice Pembayaran</title>
	<style>
		table.plainGrid
		{
			background: white;
			border-collapse: collapse;
		}
		
		table.plainGrid td
		{
			border: 1px #000 solid;
			padding: 0.3em;
			font-family:Verdana, Arial, Helvetica, sans-serif;
			font-size: 12px;
		}
		
		table.dataGrid tr
		{
			color:#000;
		}
	</style>

<div align="center">
<table width="690" align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="570" height="59" align="center"><strong><font size="4">Rincian Pembayaran Saudara <?php echo $this->session->userdata('username'); ?></font></strong></td>
</tr>
</table>
<table>
<tr>
<td width="869" height="41" align="center">
<hr size="5" color="#000000" shade></hr>
</td>
</tr>
</table>

		<table width="900" class="plainGrid">
  			<tbody>
			<tr>
				<td width="150" align="center"><strong>Nama Produk</strong></td>
				<td width="500"  align="center"><strong>Keterangan</strong></td>
                <td width="50"  align="center"><strong>Jumlah</strong></td>
                <td width="10"  align="center"><strong>Harga Satuan (Rp)</strong></td>
            </tr>
			  
				<?php
				$i = 0;
foreach($invoice as $in){
			$i++;
			?>			
						<tr>
						<td width="100" align="center"><?php echo $in['nama_produk']?></td>
						<td width="65" align="center"><?php echo $in['ket_produk'] ?></td>
						<td width="50" align="center"><?php echo $in['qty']?></td>
						<td width="50" align="center"><?php echo $in['harga']?></td>
						</tr>
<?php
}	
?>
	<tr>
		<td width="169"  align="right" colspan="3"><strong>Total Harga (Rp)</strong></td>
		<td width="50" align="center"><?php echo $in['total_harga']?></td>
	</tr>

				
            
				
</div>

</body>
</html>